﻿using System;
using System.Collections.Generic;
using System.Windows;

namespace WholeSlideImageViewer
{
    /// <summary>
    /// TextPropertiesDialog.xaml 的交互逻辑
    /// </summary>
    public partial class TextPropertiesDialog : Window
    {
        public TextPropertiesDialog()
        {
            InitializeComponent();
        }

        internal void SetViewData(IEnumerable<TextPropertiesDialogPropertyItem> properties)
        {
            if (properties is null)
            {
                throw new ArgumentNullException(nameof(properties));
            }

            DataContext = new TextPropertiesDialogViewModel(properties);
        }
    }
}
